home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 2 / ETO Development Tools 2.iso / Tools - Objects / ResEdit / ResEdit 2.0b2 / Examples / CExamples / Source / ResDisp.a < prev    next >
Encoding:
Text File  |  1990-04-02  |  5.8 KB  |  212 lines  |  [TEXT/MPS ]

  1. ; File ResDisp.a
  2. ;
  3. ; COPYRIGHT (C) 1984-1990 Apple Computer,Inc.
  4. ; All rights reserved
  5.  
  6. ; Linking with this code allows Pickers, Editors or whatever to call
  7. ; certain routines in ResEdit’s CODE segments.
  8.  
  9.     PROC
  10.  
  11. ApplScratch    equ    $a78
  12.  
  13.  
  14.             EXPORT      CallInfoUpdate
  15.             EXPORT      PassMenu
  16.  
  17.  
  18. ; Calls back to main program
  19.             EXPORT    CallInfoUpdate
  20.  
  21.             EXPORT    PassMenu
  22.             EXPORT    GiveSubEBirth
  23.             EXPORT    GetQuickDrawVars
  24.             EXPORT    NeedToRevert
  25.             EXPORT    DisplayStrAlert
  26.  
  27.             EXPORT    WindAlloc
  28.             EXPORT    SendRebuildToPickerAndFile
  29.             EXPORT    WindReturn
  30.             EXPORT    WindList
  31.             EXPORT    WindOrigin
  32.  
  33.             EXPORT    AbleMenu
  34.  
  35.             EXPORT    AddNewRes
  36.             EXPORT    BubbleUp
  37.             EXPORT    BuildType
  38.             EXPORT    GrowMyWindow
  39.             EXPORT    ConcatStr
  40.             EXPORT    PickStdHeight
  41.             EXPORT    PickStdWidth
  42.             EXPORT    CurrentRes
  43.             EXPORT    DupPick
  44.             EXPORT    SysResFile
  45.             EXPORT    RevertThisResource
  46.             EXPORT    FixHand
  47.             EXPORT    GetStr
  48.             EXPORT    Get1Index
  49.             EXPORT    RemoveResource
  50.             EXPORT    Get1Res
  51.             EXPORT    GiveEBirth
  52.             EXPORT    HandleCheck
  53.             EXPORT    MetaKeys
  54.             EXPORT    NewRes
  55.             EXPORT    PickEvent
  56.             EXPORT    PickInfoUp
  57.             EXPORT    PickMenu
  58.             EXPORT    SendRebuildToPicker
  59.             EXPORT    ScrapCopy
  60.             EXPORT    ScrapEmpty
  61.             EXPORT    ScrapPaste
  62.             EXPORT    SetResChanged
  63.             EXPORT    SetETitle
  64.             EXPORT    ShowInfo
  65.  
  66.             EXPORT    MyCalcMask
  67.             
  68.             EXPORT    GiveThisEBirth
  69.         
  70.             EXPORT    KillCache
  71.             EXPORT    DefaultListCellSize
  72.             EXPORT    DoKeyScan
  73.             EXPORT    TypeToString
  74.             EXPORT    FrameDialogItem
  75.             EXPORT    FlashDialogItem
  76.             EXPORT    AlreadyOpen
  77.             EXPORT    EditorWindSetup
  78.             EXPORT    GetWindowTitle
  79.             EXPORT    Abort
  80.             EXPORT    DisplayAlert
  81.             EXPORT    WasAborted
  82.             EXPORT    GetType
  83.             EXPORT    CheckError
  84.             EXPORT    CloseNoSave 
  85.             EXPORT    SetTheCursor
  86.             EXPORT    RestoreRemovedResources
  87.             EXPORT    MapResourceType
  88.             EXPORT    BeautifulUnique1ID
  89.             EXPORT    PickerWindSetup
  90.             EXPORT    UseAppRes
  91.             EXPORT    GetNamedStr
  92.             EXPORT    PrintWindow
  93.             EXPORT    PrintSetup
  94.             EXPORT    DrawLDEF
  95.             EXPORT    DoPickBirth
  96.             EXPORT    WritePreferences
  97.             EXPORT    GetErrorText
  98.             EXPORT    CenterDialog
  99.             EXPORT    PlaySyncSound
  100.             EXPORT    ResourceIDHasChanged
  101.             EXPORT    WasItLoaded
  102.             EXPORT    ColorAvailable
  103.             EXPORT    ResEditGet1Resource
  104.             EXPORT    DrawMBarLater
  105.             EXPORT    FindOwnerWindow
  106.             
  107.             EXPORT    InstallColorPalettePopup
  108.             EXPORT    DrawColorPopup
  109.             EXPORT    ColorPalettePopupSelect
  110.             EXPORT    DeinstallColorPalettePopup
  111.  
  112.  
  113. CallOut                JSR    DivingBoard        ;  1        UNUSED!
  114. WindAlloc           JSR DivingBoard
  115. SendRebuildToPickerAndFile    JSR DivingBoard
  116. WindList            JSR DivingBoard
  117. WindOrigin          JSR DivingBoard        ;  5
  118. InstallColorPalettePopup    JSR    DivingBoard
  119.  
  120. ; Common stuff
  121. AbleMenu            JSR DivingBoard
  122. DrawColorPopup        JSR DivingBoard
  123. AddNewRes           JSR DivingBoard
  124. BubbleUp            JSR DivingBoard        ; 10
  125. BuildType           JSR DivingBoard
  126. GrowMyWindow        JSR DivingBoard
  127. ColorPalettePopupSelect        JSR DivingBoard
  128. ConcatStr           JSR    DivingBoard
  129. PickStdHeight        JSR    DivingBoard
  130. PickStdWidth        JSR    DivingBoard
  131. CurrentRes             JSR    DivingBoard
  132. DeinstallColorPalettePopup    JSR    DivingBoard
  133. DupPick                   JSR    DivingBoard
  134. SysResFile             JSR    DivingBoard        ; 20
  135. RevertThisResource    JSR    DivingBoard
  136. FixHand                   JSR    DivingBoard
  137. GetStr                   JSR    DivingBoard
  138. Get1Index              JSR    DivingBoard            
  139. RemoveResource        JSR    DivingBoard
  140. Get1Res                JSR    DivingBoard
  141. GiveEBirth             JSR    DivingBoard
  142. HandleCheck            JSR    DivingBoard
  143. MetaKeys               JSR    DivingBoard
  144. NewRes                   JSR    DivingBoard        ; 30
  145. PickEvent              JSR    DivingBoard
  146. PickInfoUp             JSR    DivingBoard
  147. PickMenu               JSR    DivingBoard
  148. SendRebuildToPicker    JSR    DivingBoard
  149. ScrapCopy              JSR    DivingBoard
  150. ScrapEmpty             JSR    DivingBoard
  151. ScrapPaste             JSR    DivingBoard
  152. SetResChanged        JSR    DivingBoard
  153. ShowInfo               JSR    DivingBoard
  154. SetETitle              JSR    DivingBoard        ; 40
  155. Unused2              JSR    DivingBoard            ; Unused
  156. Unused1               JSR    DivingBoard            ; Unused
  157. CallInfoUpdate        JSR    DivingBoard
  158. PassMenu               JSR    DivingBoard
  159. GiveSubEBirth          JSR    DivingBoard
  160. GetQuickDrawVars     JSR    DivingBoard
  161. NeedToRevert        JSR    DivingBoard
  162. DisplayStrAlert        JSR    DivingBoard          ; 48
  163. MyCalcMask            JSR    DivingBoard        ; 49
  164. GiveThisEBirth        JSR    DivingBoard        ; 50
  165. WindReturn            JSR    DivingBoard        ; 51
  166. KillCache            JSR    DivingBoard        ; 52
  167. DefaultListCellSize    JSR    DivingBoard        ; 53
  168. DoKeyScan            JSR    DivingBoard        ; 54
  169. TypeToString        JSR    DivingBoard        ; 55
  170. FrameDialogItem        JSR    DivingBoard        ; 56
  171. FlashDialogItem        JSR    DivingBoard        ; 57
  172. AlreadyOpen            JSR    DivingBoard        ; 58
  173. EditorWindSetup        JSR    DivingBoard        ; 59
  174. GetWindowTitle        JSR    DivingBoard        ; 60
  175. Abort                JSR    DivingBoard        ; 61
  176. DisplayAlert        JSR    DivingBoard        ; 62
  177. WasAborted            JSR    DivingBoard        ; 63
  178. GetType                JSR    DivingBoard        ; 64
  179. CheckError            JSR DivingBoard        ; 65
  180. CloseNoSave            JSR DivingBoard        ; 66
  181. SetTheCursor        JSR DivingBoard        ; 67
  182. RestoreRemovedResources JSR DivingBoard    ; 68
  183. MapResourceType        JSR DivingBoard        ; 69
  184. BeautifulUnique1ID    JSR DivingBoard        ; 70
  185. PickerWindSetup        JSR    DivingBoard        ; 71
  186. UseAppRes            JSR    DivingBoard        ; 72
  187. GetNamedStr            JSR    DivingBoard        ; 73
  188. PrintWindow            JSR    DivingBoard        ; 74
  189. PrintSetup            JSR    DivingBoard        ; 75
  190. DrawLDEF            JSR    DivingBoard        ; 76
  191. DoPickBirth            JSR    DivingBoard        ; 77
  192. WritePreferences    JSR    DivingBoard        ; 78
  193. GetErrorText        JSR    DivingBoard        ; 79
  194. CenterDialog        JSR    DivingBoard        ; 80
  195. PlaySyncSound        JSR    DivingBoard        ; 81
  196. ResourceIDHasChanged JSR DivingBoard    ; 82
  197. WasItLoaded            JSR  DivingBoard    ; 83
  198. ColorAvailable        JSR  DivingBoard    ; 84
  199. ResEditGet1Resource    JSR  DivingBoard    ; 85
  200. DrawMBarLater        JSR  DivingBoard    ; 86
  201. FindOwnerWindow        JSR  DivingBoard    ; 87
  202.             ; Max 90
  203.  
  204. DivingBoard
  205.             LEA            CallOut+4,A1
  206.             MOVE.L      (SP)+,A0
  207.             SUB.L       A1,A0
  208.             ADD.L       ApplScratch,A0
  209.             MOVE.L      (A0),A0
  210.             JMP            (A0)
  211.  
  212.     END